package com.easymin.weixin.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单评价
 *
 * @author Administrator
 */
public class OrderReview implements Serializable {
  private Long id;

  private Long orderId;

  private String orderNo;// 订单号

  private Long passengerId;// 乘客id

  private String passengerName;// 乘客名称

  private Long employId; // 接单人id

  private String employName; // 接单人姓名

  private Double score;// 评分

  private String content;// 评价内容

  private Date created;

  private Date updated;

  private static final long serialVersionUID = 1L;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getOrderId() {
    return orderId;
  }

  public void setOrderId(Long orderId) {
    this.orderId = orderId;
  }

  public String getOrderNo() {
    return orderNo;
  }

  public void setOrderNo(String orderNo) {
    this.orderNo = orderNo == null ? null : orderNo.trim();
  }

  public Long getPassengerId() {
    return passengerId;
  }

  public void setPassengerId(Long passengerId) {
    this.passengerId = passengerId;
  }

  public String getPassengerName() {
    return passengerName != null ? passengerName : "";
  }

  public void setPassengerName(String passengerName) {
    this.passengerName = passengerName == null ? null : passengerName.trim();
  }

  public Long getEmployId() {
    return employId;
  }

  public void setEmployId(Long employId) {
    this.employId = employId;
  }

  public String getEmployName() {
    return employName != null ? employName : "";
  }

  public void setEmployName(String employName) {
    this.employName = employName == null ? null : employName.trim();
  }

  public Double getScore() {
    return score;
  }

  public void setScore(Double score) {
    this.score = score;
  }

  public String getContent() {
    return content != null ? content : "";
  }

  public void setContent(String content) {
    this.content = content == null ? null : content.trim();
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    OrderReview other = (OrderReview) that;
    return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(
            other.getOrderId()))
        && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(
            other.getOrderNo()))
        && (this.getPassengerId() == null ? other.getPassengerId() == null : this.getPassengerId()
            .equals(other.getPassengerId()))
        && (this.getPassengerName() == null ? other.getPassengerName() == null : this
            .getPassengerName().equals(other.getPassengerName()))
        && (this.getEmployId() == null ? other.getEmployId() == null : this.getEmployId().equals(
            other.getEmployId()))
        && (this.getEmployName() == null ? other.getEmployName() == null : this.getEmployName()
            .equals(other.getEmployName()))
        && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(
            other.getScore()))
        && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(
            other.getContent()))
        && (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(
            other.getCreated()))
        && (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(
            other.getUpdated()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
    result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
    result = prime * result + ((getPassengerId() == null) ? 0 : getPassengerId().hashCode());
    result = prime * result + ((getPassengerName() == null) ? 0 : getPassengerName().hashCode());
    result = prime * result + ((getEmployId() == null) ? 0 : getEmployId().hashCode());
    result = prime * result + ((getEmployName() == null) ? 0 : getEmployName().hashCode());
    result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
    result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
    result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
    result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
    return result;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", orderId=").append(orderId);
    sb.append(", orderNo=").append(orderNo);
    sb.append(", passengerId=").append(passengerId);
    sb.append(", passengerName=").append(passengerName);
    sb.append(", employId=").append(employId);
    sb.append(", employName=").append(employName);
    sb.append(", score=").append(score);
    sb.append(", content=").append(content);
    sb.append(", created=").append(created);
    sb.append(", updated=").append(updated);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }
}
